//package pri.zxx.learndemo.boomfilter;
//
//import org.apache.shiro.crypto.hash.SimpleHash;
//
//import java.util.BitSet;
//
//public class BoomFilter {
//	/* BitSet初始分配2^24个bit */
//	private static final int DEFAULT_SIZE = 1 << 25;
//	/* 不同哈希函数的种子，一般应取质数 */
//	private static final int[] seeds = new int[]{5, 7, 11, 13, 31, 37, 61};
//	private BitSet bits = new BitSet(DEFAULT_SIZE);
//	/* 哈希函数对象 */
//	private SimpleHash[] func = new SimpleHash[seeds.length];
//
//	public BoomFilter() {
//		for (int i = 0; i < seeds.length; i++) {
//			func[i] = new SimpleHash(DEFAULT_SIZE, seeds[i]);
//		}
//	}
//}
